package com.zyh.homework.test3.domain;

public class Manager extends Person{
    private int bonus;

    public Manager() {
    }

    public Manager(String name, String id, int salary, int bonus) {
        super(name, id, salary);
        this.bonus = bonus;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("工号为"+getId()+"基本工资为"+getSalary()+"奖金为"+bonus+"项目经理正在努力的做着管理工作,分配任务,检查员工提交上来的代码.....");
    }
}
